-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix: Allow classNamePrefixSeparator in image.jsx (fixes #478) #479
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
classNamePrefixSeparator
is applied to both classNamePrefixes
and attributionClassNamePrefixes
, however the image attribution doesn't require a prefix separator.
Looking at the current naming in Adapt, regardless if the attribution is for a component image or component item image, we just specify the component and component type, e.g. .component__attribution .accordion__attribution
. Vanilla attribution styles target these selectors too.
I'd suggest we apply classNamePrefixSeparator
to classNamePrefixes
only. Would you like me to make the amend @oliverfoster whilst I'm working on adaptlearning/adapt-contrib-hotgraphic#290 ?
Yes please. Take it away. 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works as expected thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
🎉 This PR is included in version 6.43.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
fixes #478
Fix
__
in image.jsx by specifyingclassNamePrefixSeparator = '__item-'